package com.example.demo.modules.base.Mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.example.demo.modules.base.entity.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Exrickx
 */
@Mapper
public interface ResourceMapper extends BaseMapper<Resource> {

    /**
     * 通过用户id获取
     * @param userId
     * @return
     */
    List<Resource> findByUserId(@Param("userId") Integer userId);
}
